package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountOrder;
import com.ecoolex.discount.sales.entity.DiscountOrderExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountOrderMapper {
    long countByExample(DiscountOrderExample example);

    int deleteByExample(DiscountOrderExample example);

    int deleteByPrimaryKey(Integer orderId);

    int insert(DiscountOrder record);

    int insertSelective(@Param("record") DiscountOrder record, @Param("selective") DiscountOrder.Column ... selective);

    DiscountOrder selectOneByExample(DiscountOrderExample example);

    List<DiscountOrder> selectByExample(DiscountOrderExample example);

    DiscountOrder selectByPrimaryKey(Integer orderId);

    DiscountOrder selectByPrimaryKeyWithLogicalDelete(@Param("orderId") Integer orderId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountOrder record, @Param("example") DiscountOrderExample example, @Param("selective") DiscountOrder.Column ... selective);

    int updateByExample(@Param("record") DiscountOrder record, @Param("example") DiscountOrderExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountOrder record, @Param("selective") DiscountOrder.Column ... selective);

    int updateByPrimaryKey(DiscountOrder record);

    int batchInsert(@Param("list") List<DiscountOrder> list);

    int batchInsertSelective(@Param("list") List<DiscountOrder> list, @Param("selective") DiscountOrder.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountOrderExample example);

    int logicalDeleteByPrimaryKey(Integer orderId);
}